package com.music.message.api;

import com.music.common.core.constant.SecurityConstants;
import com.music.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Author 史豪通
 * Date 2024/10/27 17:14
 */
@FeignClient(ServiceNameConstants.MESSAGE_SERVICE)
public interface RemoteUserMessageService {
    @GetMapping("/user/check")
    public void check(@RequestParam("phone") String phone, @RequestParam("code") String code, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
